<template>
  <div class="login-wrap">
   <el-form :model="home"  label-width="100px" class="login-container">
       <h2 class="title">请选择您的角色</h2>
       <el-form-item>
         <el-button>患者</el-button>
         <el-button>医生</el-button>
       </el-form-item>
     </el-form>
   </div>
 </template>
   
 <script>
 //导出
 export default {
   data() {
     return {
    
     };
   },
   methods: {
 
   },
 };
 </script>
  
  <style>
.login-wrap {
   box-sizing: border-box;
   width: 100%;
   height: 100%;
   padding-top: 38%;
   background-image: url(../img/R-C.jpg);
   background-repeat: no-repeat;
   background-position: center right;
   background-size: 100%;


}
   
.login-wrap {
  box-sizing: border-box;
  width: 100%;
  height: 100vh; 
  display: flex;
  justify-content: center;
  align-items: center; 
  background-image: url(../img/R-C.jpg);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover; 
  padding: 0; 
}

.login-container {
  border-radius: 10px;
  width: 360px;
  height: 200px;
  padding: 30px; 
  background: #fff;
  border: 1px solid #eaeaea; /* 将边框宽度从 1px 减小，可根据需要调整 */
  text-align: left;
  box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out; 
}

.login-container:hover {
  transform: scale(1.05); 
}

.title {
  margin: 0 auto 30px auto; 
  text-align: center;
  color: #505458;
  font-size: 24px; 
}

.button-container {
  width: 300px; 
  height: 200px; 
  display: flex;
  /* justify-content: center;  */
  gap: 30px; 

}

.role-button {
  width: 150px; 
  height: 150px; 
  padding: 15px 0; 
  border: none; 
  background-color: #409EFF; 
  color: white; 
  border-radius: 5px; 
  cursor: pointer; 
  transition: background-color 0.3s ease-in-out; 
  display: flex;
  justify-content: center;
  align-items: center; 
}

.role-button:hover {
  background-color: #3a8ee6; 
}
</style>
